package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.MsgVerifyCodeResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;

/*
*  MsgVerifyCodeApi获取验证码接口
*  MsgVerifyCodeParams获取验证码参数
* */


public class MsgVerifyCodeApi extends AbsRequest<MsgVerifyCodeApi.MsgVerifyCodeParams, MsgVerifyCodeResult> {

    public MsgVerifyCodeApi(MsgVerifyCodeParams msgVerifyCodeParams, Listener<MsgVerifyCodeResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getMsgVerifyCodeUrl(), msgVerifyCodeParams, listener, errorListener, MsgVerifyCodeResult.class);
    }


    public static class MsgVerifyCodeParams extends BaseParams {

        public static final String PHONE = "PHONE";

        public MsgVerifyCodeParams(String phone) {

            put(PHONE, phone);
        }
    }

}
